
import django_filters
from .models import UserAddress


class UserAddressFilter(django_filters.rest_framework.FilterSet):
    """
    用户地址的过滤
    """
    province = django_filters.CharFilter(field_name='province', lookup_expr='icontains')

    class Meta:
        model = UserAddress
        fields = ['province']
